using System.Collections.Generic;
using System.Threading.Tasks;
using Mvvm.Models;

namespace Mvvm.Services;

public interface IChatDataStorage
{
    //初始化数据库
    Task InitializeAsync();
    
    //插入数据
    Task InsertAllAsync(List<ChatData> chatData, int identifier);
    
    //查询所有数据
    Task<List<ChatData>> ListAsync();
    
    //查询数据
    Task<List<ChatData>> QueryAsync(int identifier);

    //删除表
    Task DeleteAsync();
    

}